package hello;

public class Case4 {
    public static void main(String[] args) {
        String phone = "189560";
        String zz = "/^1\\d{10}$/";
        System.out.println(zz);
        if (zz.matches(phone)) {
            System.out.println("电话号码格式正确");
        } else {
            System.out.println("电话号码格式不正确！");
        }

        String test = "a";
        for (int i = 1; i < 11; i++) {
            test = test + i;
            System.out.println(test);
        }
    }
}
